package com.example.admin.service;

import com.example.xo.pojo.Blog;
import com.example.xo.vo.BlogVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BlogService {
    public boolean add(Blog blog);
    public boolean deleteById(String id);
    public boolean update(Blog blog);
    public List<BlogVO> findAll();
    public BlogVO findById(String id);
   public Blog findBlogById(String id);
    public BlogVO findByTitle(String title);
}
